package com.trt.eatmeat.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import java.nio.charset.StandardCharsets;

/**
 * @Author yufeng_ma@trtjk.com
 * @Description //TODO
 * @Date 2022/9/28 9:04
 **/
@Controller
public class ChoujiangController {

    @Value("${jsonStr}")
    String jsonStr;
    @GetMapping(value = "/cj")
    public  String toSign(Model model, HttpServletRequest request){
        String member = new String(jsonStr.getBytes(StandardCharsets.ISO_8859_1),
                StandardCharsets.UTF_8);
        model.addAttribute("member",member);
        return "index";

//        SystemParam systemParam = new SystemParam("");
//        ReviewAfterSalesInfoDto dto
//        EcommerceOrderReviewAfterSalesRequest request1= new EcommerceOrderReviewAfterSalesRequest();
      //  request1.setReviewAfterSalesArgument();
    }



}
